#include "SList.h"
void test1() {
	SLTNode* s=NULL;
	//s=CreateSList(5);
	SLTPushBack(&s, 1);
	SLTPushFront(&s, 2);
	SLTPushFront(&s, 3);

	SLTPopFront(&s);

	SLTPrint(s);
}
void test2() {
	SLTNode* s = NULL;
	//s=CreateSList(5);
	SLTPushBack(&s, 1);
	SLTPushFront(&s, 2);
	SLTPushFront(&s, 3);

	SLTNode* p = SLTFind(s, 3);
	if (p) {
		SLTInsertAfter(p, 20);
		SLTInsert(&s, p, 30);
		SLTPrint(s);
		SLTEraseAfter(p);
		SLTPrint(s);
		SLTDestory(&s);

	}
	SLTPrint(s);
}
int main() {
	//test1();
	test2();
	return 0;
}